package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.HonorWorkersDao;
import com.site.wisdom_construction.entity.personnelModule.HonorWorkers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/7
 * @Description
 */
@Service
public class HonorWorkersService implements HonorWorkersDao {
    @Autowired
    private HonorWorkersDao honorWorkersDao;

    @Override
    public int insertHonorWorkers(Map map) {
        return honorWorkersDao.insertHonorWorkers(map);
    }

    @Override
    public int deleteHonorWorkers(Map map) {
        return honorWorkersDao.deleteHonorWorkers(map);
    }

    @Override
    public int updateHonorWorkers(Map map) {
        return honorWorkersDao.updateHonorWorkers(map);
    }

    @Override
    public List<HonorWorkers> findHonorWorkersByPage(Map map) {
        return honorWorkersDao.findHonorWorkersByPage(map);
    }

    @Override
    public long Total(Map map) {
        return honorWorkersDao.Total(map);
    }

    @Override
    public List<HonorWorkers> findHonorWorkersByIdCardSN(Map map) {
        return honorWorkersDao.findHonorWorkersByIdCardSN(map);
    }

    @Override
    public List<HonorWorkers> findHonorWorkersByWorkerCard(Map map) {
        return honorWorkersDao.findHonorWorkersByWorkerCard(map);
    }

    @Override
    public HonorWorkers findHonorWorkersById(Map map) {
        return honorWorkersDao.findHonorWorkersById(map);
    }
}
